gdk: Make GDK_NONE Atom translate to NULL
authorBenjamin Otte <otte@redhat.com>
Wed, 15 Nov 2017 15:45:12 +0000 (16:45 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 15 Nov 2017 18:07:17 +0000 (19:07 +0100)
Instead of the string "NONE" we now use NULL.

gdk/gdkproperty.c

index faa466431a28924d0e7c22ba4c825b341a30d894..d46b9eda8e194fed8d85c5f54aa098d365ec21dc 100644 (file)
@@ -68,8 +68,7 @@ ensure_atom_tables (void)
   names_to_atoms = g_hash_table_new (g_str_hash, g_str_equal);
   atoms_to_names = g_ptr_array_new ();
 
-  g_hash_table_insert (names_to_atoms, (gpointer) "NONE", NULL);
-  g_ptr_array_add (atoms_to_names, (gpointer) "NONE");
+  g_ptr_array_add (atoms_to_names, NULL);
 }
 
 static GdkAtom